﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using SGCG.Helpers;

namespace SGCG.Model
{
    public class TranslateTransform : TransformBase
    {

        private Point offset = new Point(0, 0);
        public Point Offset
        {
            get { return offset; }
            set
            {
                offset = value;
                OnTransformChanged();
            }
        }

        public override Point Transform(Point point)
        {
            return point.Add(Offset);
        }

        public override void Transform(double angleInit, double angleSpan, out double newAngleInit, out double newAngleSpan)
        {
            newAngleInit = angleInit;
            newAngleSpan = angleSpan;
        }

    }
}
